C1.Silverlight.FlexGrid.5
Frozen Property
Example 

Gets or sets the number of frozen rows or columns in the collection.
Syntax
'Declaration
 
Public Property Frozen As System.Integer
public System.int Frozen {get; set;}
Example
The code below implements an event handler that toggles row and column freezing based on the cursor position (similar to the 'freeze panes' command in Excel).
// handle the Click event on the _chkFreeze CheckBox to
// freeze/unfreeze rows/columns
void _chkFreeze_Click(object sender, RoutedEventArgs e)
{
  if (_chkFreeze.IsChecked.Value)
  {
    // freeze rows and columns above and to the left of the cursor
    _flex.Rows.Frozen = _flex.Selection.Row;
    _flex.Columns.Frozen = _flex.Selection.Column;
  }
  else
  {
    // unfreeze rows and columns
    _flex.Rows.Frozen = 0;
    _flex.Columns.Frozen = 0;
  }
}
See Also

Reference

RowColCollection<T> Class
RowColCollection<T> Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.